<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>诗瑶博客移动端主页</title>
    <!-- 引入重置样式 -->
    <link rel="stylesheet" href="./css/reset.css">
    <!-- 引入当前页面样式 -->
    <link rel="stylesheet" href="./y-css/y-vedio.css">
</head>
<body>
    <!-- 头部返回 -->
    <div class="header-top">
        <div class="top-head">&nbsp;瑶瑶高清黑历史</div>
    </div>
   <!-- 内容区 -->
    <div class="index-content">
      <div class="content">
          <video id="myVideo" src="./vedio/s2.mp4" class="video" preload="metadata" controls>
          </video> 
      </div>
      <div class="content-text">
      </div>
      <div class="content">
        <video id="myVideo" src="./vedio/s1.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div>
      <div class="content">
        <video id="myVideo" src="./vedio/s3.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div>
      <div class="content">
        <video id="myVideo" src="./vedio/s4.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div>
      <div class="content">
        <video id="myVideo" src="./vedio/s5.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div>   
      <div class="content">
        <video id="myVideo" src="./vedio/s6.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div> 
      <div class="content">
        <video id="myVideo" src="./vedio/s7.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div> 
      <div class="content">
        <video id="myVideo" src="./vedio/s8.mp4" class="video" preload="metadata" controls>
        </video> 
      </div>
      <div class="content-text">
      </div>    
    </div>
    <div class="page-end">
    </div>
    <div class="footer">
      <div class="foot one"><a href="yd.html">首页</a></div>
      <div class="foot two"><a href="yd-detail.html">瑶瑶日记</a></div>
      <div class="foot three"><a href="yd-vedio.html">关于瑶瑶</a></div>
      <div  id="myDiv" class="foot four"><a href="#">联系我们</a></div>
    </div>
       <!-- 弹窗的HTML结构 -->
       <div id="myModal" class="modal">
        <!-- 模态内容 -->
        <div class="modal-content">
        <span class="close">&times;</span>
        <p>欢迎加入瑶瑶公主粉丝团--章爸爸周妈妈！</p>
        </div>
    </div>

</body>

<script>
  // 获取元素
var myDiv = document.getElementById('myDiv');
var myModal = document.getElementById('myModal');
var span = document.getElementsByClassName("close")[0];
 
// 当点击div时显示弹窗
myDiv.onclick = function() {
  myModal.style.display = "block";
}
 
// 当点击关闭按钮时隐藏弹窗
span.onclick = function() {
  myModal.style.display = "none";
}
 
// 当点击其他地方时（除了弹窗和关闭按钮）隐藏弹窗
window.onclick = function(event) {
  if (event.target == myModal) {
    myModal.style.display = "none";
  }
}
</script>
</html>